home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.02 Feb 95 / Yenta / Erics C++ Libraries / Appletalk Classes / CPPConfirmTask.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-04  |  1.1 KB  |  50 lines  |  [TEXT/KAHL]

  1. /********************************************************* DEFINITION
  2.     DATE:    9/17/93
  3.     AUTHOR: Eric R. Rosé
  4.     
  5.     CLASS:  CPPConfirmTask
  6.     
  7.     SUPERCLASS: CPPPeriodicTask
  8.     
  9.         This class lets you asynchronously confirm the address of
  10.         a node on the network
  11.     
  12. ********************************************************************/
  13.  
  14. #pragma once
  15.  
  16. #include <CPPPeriodicTask.h>
  17. #include <Appletalk.h>
  18.  
  19. class CPPPTaskManager;
  20. class CPPNodeInfo;
  21.  
  22. class CPPConfirmTask : public CPPPeriodicTask {
  23.  
  24. public:
  25.     CPPNodeInfo        *NodeToConfirm;
  26.     
  27.                     CPPConfirmTask (CPPTaskManager *TaskManager,
  28.                                     long minPeriod = 120,
  29.                                         Boolean deleteWhenDone = TRUE);
  30.                     ~CPPConfirmTask (void);
  31.  
  32.     virtual    char *ClassName (void);
  33.     
  34.     virtual    void    DoPeriodicAction (void);
  35.     virtual void    DoCompletedAction (void);
  36.     
  37.     Boolean            NodeExists (Boolean *isDone);
  38.     
  39.     void            StartNodeConfirm (CPPNodeInfo *TheNode,
  40.                                       CompletionProc DoProc);
  41.         
  42. private:
  43.     MPPParamBlock         *confirmRec;
  44.     AddrBlock            *confirmAddr;
  45.     NamesTableEntry        *NTE;
  46.     Boolean                foundIt;
  47.     
  48.     void                SetupConfirmCall (CPPNodeInfo *TheNode);
  49. };
  50.